export const querySelector = sel => document.querySelector(sel)
export const insertBefore = (parentNode, node, subNode) =>
  parentNode.insertBefore(node, subNode)
export const removeNode = node => node.parentNode.removeNode(node)
export const createElement = type => document.createElement(type)
export const createTextElement = text => {
  const el = document.createTextNode('')
  el.textContent = text
  return el
}
export const createTextNode = text => document.createTextNode(text)
export const setAttribute = (el, name, value) => el.setAttribute(name, value)
